﻿using Microsoft.AspNetCore.Http;

namespace ESoft.Extensions {
    public static partial class Extension {

        public static T GetService<T>(this HttpContext context) {
            return (T)context.RequestServices.GetService(typeof(T));
        }

    }
}